package com.jinpeng.redis.service;

import com.jinpeng.redis.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jp
 * @since 2020-01-07
 */
public interface IUserService extends IService<User> {

    /**
     * 用id查询用户
     * @param id
     * @return
     */
    User selectUser(String id);

    User insertUser(User user);

    List<User> selectUserList();

    List<User> selectUserCacheList();
}
